/* Categories.css */
.categories-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
  }
  
  .page-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
  }
  
  /* ����������ʽ */
  .search-form-container {
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .search-field {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
  }
  
  .search-field label {
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
  }
  
  .search-field input,
  .search-field select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
  }
  
  .search-field input:focus,
  .search-field select:focus {
    outline: none;
    border-color: #ffd600;
    box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.2);
  }
  
  .checkbox-field {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  
  .checkbox-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
  }
  
  .search-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 10px;
  }
  
  button.search-btn,
  button.reset-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  button.search-btn {
    background-color: #ffd600;
    color: #333;
  }
  
  button.search-btn:hover {
    background-color: #ffc800;
  }
  
  button.reset-btn {
    background-color: #f0f0f0;
    color: #555;
  }
  
  button.reset-btn:hover {
    background-color: #e0e0e0;
  }
  
  /* ����ɸѡ��ʽ */
  .category-filter {
    margin-bottom: 25px;
  }
  
  .category-filter h3 {
    margin-bottom: 12px;
    font-size: 16px;
    color: #444;
  }
  
  .category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .category-buttons button {
    padding: 6px 12px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #555;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .category-buttons button:hover {
    background-color: #f0f0f0;
  }
  
  .category-buttons button.active {
    background-color: #ffd600;
    border-color: #ffd600;
    color: #333;
    font-weight: 500;
  }
  
  /* ��Դ�б���ʽ */
  .resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
  }
  
  .resource-card {
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .resource-image {
    position: relative;
    height: 200px;
    overflow: hidden;
  }
  
  .resource-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
  }
  
  .resource-card:hover .resource-image img {
    transform: scale(1.05);
  }
  
  .free-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff6b6b;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
  }
  .available-badge {
    position: absolute;
    top: 40px;
    right: 10px;
    background-color: #ff6b6b;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
  }
  
  .o {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }
  
  .resource-title {
    margin: 0 0 10px;
    font-size: 16px;
    color: #333;
    height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .resource-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
  }
  
  .category-label {
    background-color: #f0f0f0;
    color: #666;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
  }
  
  .resource-stats {
    display: flex;
    gap: 10px;
  }
  
  .resource-stats span {
    display: flex;
    align-items: center;
    color: #888;
    font-size: 12px;
  }
  
  .resource-stats i {
    margin-right: 4px;
  }
  
  .icon-like:before {
    content: "?";
  }
  
  .icon-download:before {
    content: "?";
  }
  
  .resource-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: auto;
  }
  
  .tag {
    background-color: #f8f8f8;
    color: #777;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
  }
  
  .more-tag {
    background-color: transparent;
  }
  
  .resource-actions {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #f0f0f0;
  }
  
  .btn {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
  }
  
  .view-btn {
    background-color: #f0f0f0;
    color: #555;
    flex: 1;
    margin-right: 10px;
  }
  
  .view-btn:hover {
    background-color: #e0e0e0;
  }
  
  .buy-btn {
    background-color: #ffd600;
    color: #333;
    flex: 1;
  }
  
  .buy-btn:hover {
    background-color: #ffc800;
  }
  
  .download-btn {
    background-color: #4caf50;
    color: white;
    flex: 1;
  }
  
  .download-btn:hover {
    background-color: #43a047;
  }
  
  /* ���غʹ�����ʽ */
  .loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
  }
  
  .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ffd600;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  .error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    margin: 20px 0;
  }
  
  .no-resources {
    text-align: center;
    padding: 40px 0;
    color: #777;
  }
  
  .search-hint-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
  }
  
  .hint-subtitle {
    font-size: 14px;
    color: #999;
    margin-top: 8px;
  }
  
  /* ҳʽ */
  .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    margin-bottom: 20px;
  }
  
  .pagination-btn {
    padding: 8px 12px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #555;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .pagination-btn:hover:not(.disabled):not(.active) {
    background-color: #eee;
  }
  
  .pagination-btn.active {
    background-color: #ffd600;
    border-color: #ffd600;
    color: #333;
    font-weight: 500;
  }
  
  .pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  
  .pagination-info {
    margin-left: 15px;
    font-size: 14px;
    color: #777;
  }
  
  /* ��Ӧʽ��� */
  @media (max-width: 768px) {
    .search-row {
      flex-direction: column;
      gap: 15px;
    }
    
    .search-field {
      width: 100%;
    }
    
    .resources-grid {
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .resource-image {
      height: 160px;
    }
  }
  
  /* 在文件末尾添加分页容器样式 */
  .pagination-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    padding: 20px 0;
  }
  
  .pagination-container .ant-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
  }